﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Psi.Models;
using SimpleSingle.Models;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;

namespace SimpleSingle.Controllers
{
    public class MyController : Controller
    {
        private readonly PomeloMySqlDbContext _context;

        public MyController(PomeloMySqlDbContext context)
        {
            _context = context;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult Index1()
        {
            _context.SaveChanges();
            return View();
        }

    }
}
